import json
from bisect import bisect_right # bisect_right
from math import atan2, pi
from typing import List

# 方法一：二分查找
class Solution(object):
    def visiblePoints(self, points: List[List[int]], angle: int, location: List[int]) -> int:
        sameCnt = 0
        polarDegrees = []
        for p in points:
            if p == location:
                sameCnt += 1
            else:
                polarDegrees.append(atan2(p[1] - location[1], p[0] - location[0]))
        polarDegrees.sort()

        n = len(polarDegrees)
        polarDegrees += [deg + 2 * pi for deg in polarDegrees]

        degree = angle * pi / 180
        maxCnt = max((bisect_right(polarDegrees, polarDegrees[i] + degree) - i for i in range(n)), default=0)
        return maxCnt + sameCnt

# # 方法二：滑动窗口
# class Solution:
#     def visiblePoints(self, points: List[List[int]], angle: int, location: List[int]) -> int:
#         sameCnt = 0
#         polarDegrees = []
#         for p in points:
#             if p == location:
#                 sameCnt += 1
#             else:
#                 polarDegrees.append(atan2(p[1] - location[1], p[0] - location[0]))
#         polarDegrees.sort()
#
#         n = len(polarDegrees)
#         polarDegrees += [deg + 2 * pi for deg in polarDegrees]
#
#         maxCnt = 0
#         right = 0
#         degree = angle * pi / 180
#         for i in range(n):
#             while right < n * 2 and polarDegrees[right] <= polarDegrees[i] + degree:
#                 right += 1
#             maxCnt = max(maxCnt, right - i)
#         return sameCnt + maxCnt


def stringToInt2dArray(input):
    return json.loads(input)

def stringToInt(input):
    return int(input)

def stringToIntegerList(input):
    return json.loads(input)

def intToString(input):
    if input is None:
        input = 0
    return str(input)

def main():
    import sys
    def readlines():
        for line in sys.stdin:
            yield line.strip('\n')
    lines = readlines()
    while True:
        try:
            line = next(lines)
            points = stringToInt2dArray(line)
            line = next(lines)
            angle = stringToInt(line)
            line = next(lines)
            location = stringToIntegerList(line)

            ret = Solution().visiblePoints(points, angle, location)

            out = intToString(ret)
            print(out)
        except StopIteration:
            break

if __name__ == '__main__':
    main()